package com.example.demo.client.vm.sysbasequery;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/13  17:54
 */
@ApiModel("角色详情信息")
public class RoleVm implements Serializable{
    private static final long serialVersionUID = 693127356516203592L;
    @ApiModelProperty("角色ID")
    private Long roleId;
    @ApiModelProperty("角色名称")
    private String roleName;
    @ApiModelProperty("父角色ID")
    private Long parentRoleId;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("角色类型")
    private Integer roleFlag;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date insertTime;
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;
    @ApiModelProperty("创建人ID")
    private Long createUserId;
    @ApiModelProperty("修改人ID")
    private Long updateUserId;
    @ApiModelProperty("创建人")
    private String createUserName;
    @ApiModelProperty("修改人")
    private String updateUserName;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getParentRoleId() {
        return parentRoleId;
    }

    public void setParentRoleId(Long parentRoleId) {
        this.parentRoleId = parentRoleId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getRoleFlag() {
        return roleFlag;
    }

    public void setRoleFlag(Integer roleFlag) {
        this.roleFlag = roleFlag;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    @Override
    public String toString() {
        return "RoleVm{" +
            "roleId=" + roleId +
            ", roleName='" + roleName + '\'' +
            ", parentRoleId=" + parentRoleId +
            ", description='" + description + '\'' +
            ", roleFlag=" + roleFlag +
            ", insertTime=" + insertTime +
            ", updateTime=" + updateTime +
            ", createUserId=" + createUserId +
            ", updateUserId=" + updateUserId +
            ", createUserName='" + createUserName + '\'' +
            ", updateUserName='" + updateUserName + '\'' +
            '}';
    }
}
